import { defineMessages } from "react-intl";

export default defineMessages({
  save: {
    id: "toolbar.save",
    defaultMessage: "保存",
  },
  delete: {
    id: "toolbar.delete",
    defaultMessage: "删除",
  },
  import: {
    id: "toolbar.import",
  },
  export: {
    id: "toolbar.export",
  },
  preview: {
    id: "toolbar.preview",
    defaultMessage: "预览",
  },
  forward: {
    id: "toolbar.forward",
  },
  fallback: {
    id: "toolbar.fallback",
  },
  containerComponent: {
    id: "editor.component.container",
    table: {
      id: "editor.component.container.table",
      row: {
        insert: {
          id: "editor.component.container.table.insertrow",
        },
        delete: {
          id: 'editor.component.container.table.deleterow',
        },
      },
      cell: {
        insert: {
          id: "editor.component.container.table.insertcell",
        },
        delete: {
          id: 'editor.component.container.table.deletecell',
        },
      },
    },
  },
  desktop: {
    id: "editor.tabs.desktop",
    defaultMessage: "PC端",
  },
  mobile: {
    id: "editor.tabs.mobile",
    defaultMessage: "移动端",
  },
  api: {
    id: "editor.tabs.api",
    defaultMessage: "接口",
  },
  metadata: {
    id: "editor.tabs.metadata",
    defaultMessage: "元数据",
  },
  visualComponent: {
    id: "editor.component.visual",
    defaultMessage: "显示组件",
  },
  inputComponent: {
    id: "editor.component.input",
    defaultMessage: "输入组件",
  },
  textComponent: {
    id: "editor.component.text",
    text: {
      id: "editor.component.text.text",
    },
  },
  imageComponent: {
    id: "editor.component.image",
  },
  dividerComponent: {
    id: "editor.component.divider",
  },
  calculateComponent: {
    id: "editor.component.calculate",
    start: {
      id: "editor.component.calculate.start",
    },
    end: {
      id: "editor.component.calculate.end",
    },
  },
  textInputComponent: {
    id: "editor.component.textInput",
  },
  selectComponent: {
    id: "editor.component.select",
  },
  radioComponent: {
    id: "editor.component.radio",
  },
  checkboxComponent: {
    id: "editor.component.checkbox",
  },
  queryPickerComponent: {
    id: 'editor.component.queryPicker',
  },
  textAreaComponent: {
    id: "editor.component.textArea",
  },
  uploadComponent: {
    id: "editor.component.upload",
  },
  datePickerComponent: {
    id: "editor.component.datePicker",
  },
  approvalComponent: {
    id: "editor.component.approval",
  },
  mobileComponent: {
    id: "editor.component.mobile",
    defaultMessage: "移动端组件",
  },
  desktopComponent: {
    id: "editor.component.desktop",
    defaultMessage: "PC端组件",
  },
  addNewApi: {
    id: "api.add",
    defaultMessage: "添加新接口",
  },
  apiName: {
    id: "api.name",
    defaultMessage: "接口名称",
  },
  apiKey: {
    id: "api.key",
  },
  apiValue: {
    id: "api.value",
  },
  apiUrl: {
    id: "api.url",
    defaultMessage: "接口地址",
  },
  apiMethod: {
    id: "api.method",
    defaultMessage: "请求类型",
  },
  apiResponseType: {
    id: "api.responseType",
    defaultMessage: "返回类型",
  },
  apiResponseTypeObject: {
    id: "api.responseType.object",
    defaultMessage: "对象",
  },
  apiResponseTypeList: {
    id: "api.responseType.list",
    defaultMessage: "列表",
  },
  apiAddParameter: {
    id: "api.addParameter",
    defaultMessage: "添加参数",
  },
  apiParam: {
    id: "api.param",
    defaultMessage: "参数",
  },
  stylePanel: {
    height: {
      id: "stylePanel.height",
      min: {
        id: "stylePanel.minheight",
      },
      max: {
        id: "stylePanel.maxheight",
      },
    },
    width: {
      id: "stylePanel.width",
      min: {
        id: "stylePanel.minwidth",
      },
      max: {
        id: "stylePanel.maxwidth",
      },
    },
    zIndex: {
      id: "stylePanel.zIndex",
    },
    fontSize: {
      id: "stylePanel.fontSize",
    },
    fontStyle: {
      id: "stylePanel.fontStyle",
    },
    fontColor: {
      id: "stylePanel.fontColor",
    },
    id: "propertyPanel",
  },
  propertyPanel: {
    id: "propertyPanel",
  },
  propertyPanelName: {
    id: "propertyPanel.name",
  },
  propertyPanelDescription: {
    id: "propertyPanel.description",
  },
  propertyPanelUpdate: {
    id: "propertyPanel.update",
  },
  propertyPanelReset: {
    id: "propertyPanel.reset",
  },
  propertyPanelText: {
    id: "propertyPanel.text",
  },
  propertyPanelImage: {
    url: {
      id: "propertyPanel.image.url",
    },
    alt: {
      id: "propertyPanel.image.alt",
    },
  },
  propertyPanelType: {
    id: "propertyPanel.type",
  },
  propertyPanelLabeltext: {
    id: "propertyPanel.labeltext",
  },
  propertyPanelLabelmargin: {
    id: "propertyPanel.labelmargin",
  },
  propertyPanelLabelalign: {
    id: "propertyPanel.labelalign",
  },
  propertyPanelPlaceholder: {
    id: "propertyPanel.placeholder",
  },
  propertyPanelMaxlength: {
    id: "propertyPanel.maxlength",
  },
  propertyPanelMultiple: {
    id: "propertyPanel.multiple",
  },
  propertyPanelDirection: {
    id: "propertyPanel.direction",
  },
  propertyRowheight: {
    id: "propertyPanel.rowheight",
  },
  propertyColumnwidth: {
    id: "propertyPanel.columnwidth",
  },
  propertyRowcount: {
    id: "propertyPanel.rowcount",
  },
  propertyColumncount: {
    id: "propertyPanel.columncount",
  },
  propertyTimeformat: {
    id: "propertyPanel.timeformat",
  },
  propertyDateformat: {
    id: "propertyPanel.dateformat",
  },
  propertyPanelDataSource: {
    id: "propertyPanel.datasource",
    options: {
      id: "propertyPanel.datasource.options",
    },
    default: {
      id: "propertyPanel.datasource.default",
    },
    expression: {
      id: "propertyPanel.datasource.expression",
    },
  },
  propertyPanelCalculate: {
    start: {
      id: "propertyPanel.calculate.start",
    },
    end: {
      id: "propertyPanel.calculate.end",
    },
  },
  propertyPanelRequired: {
    id: "propertyPanel.required",
  },
  errorNotification: {
    editorValue: {
      id: "error.notification",
    },
    errorText: {
      id: "error.notification.text",
    },
    api: {
      id: "error.notification.api",
    },
  },
  successNotification: {
    copy: {
      id: "success.notification.copy",
    },
  },
});
